-
-
Notifications
You must be signed in to change notification settings - Fork 183
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[1.21.4] Fix BlockParticleOption#pos not getting sent to the client #1673
[1.21.4] Fix BlockParticleOption#pos not getting sent to the client #1673
Conversation
… on NF->NF connections
Last commit published: 666d93eeb69e92ca200d3ac377bac3bddd0d9ebe. PR PublishingThe artifacts published by this PR:
Repository DeclarationIn order to use the artifacts published by the PR, add the following repository to your buildscript: repositories {
maven {
name 'Maven for PR #1673' // https://github.com/neoforged/NeoForge/pull/1673
url 'https://prmaven.neoforged.net/NeoForge/pr1673'
content {
includeModule('net.neoforged', 'neoforge')
includeModule('net.neoforged', 'testframework')
}
}
} MDK installationIn order to setup a MDK using the latest PR version, run the following commands in a terminal. mkdir NeoForge-pr1673
cd NeoForge-pr1673
curl -L https://prmaven.neoforged.net/NeoForge/pr1673/net/neoforged/neoforge/21.4.5-beta-pr-1673-particleoptions_pos_networking/mdk-pr1673.zip -o mdk.zip
jar xf mdk.zip
rm mdk.zip || del mdk.zip To test a production environment, you can download the installer from here. |
@XFactHD, this PR introduces breaking changes.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have you tested running this across two different NeoForge versions, one with the fix and one without? I'm a bit dubious on the outcome if one side expects the position data to be there, and the other does not.
If one side is patched and the other is not then this will blow up. That's why I won't backport this fix to 21.1. |
🚀 This PR has been released as NeoForge version |
This PR fixes the
BlockParticleOption#pos
field not getting sent to the client, causing custom models withModelData
-sensitive particle texture selection to be unable to fall back to a default value due to receivingModelData.EMPTY
.To fix this, the
StreamCodec
ofBlockParticleOption
is patched to send the position on NeoForge->NeoForge connections.Vanilla compatibility being retained was tested by connecting with a vanilla client to a NeoForge dev server and falling onto blocks from a sufficient height.
I also opted to slightly clean up the patches around the addition of the position data.
Fixes #1629